package com.gewu.teday.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter

class MainAdapter(private var fragmentList: ArrayList<Fragment>, fm: FragmentManager, behavior: Int)
    : FragmentStatePagerAdapter(fm, behavior) {

    override fun getCount(): Int {
        return fragmentList.size
    }

    override fun getItem(position: Int): Fragment {
        return fragmentList[position]
    }

}